#define _CRT_SECURE_NO_WARNINGS 1
#include<iostream>
#include<cstdio>
#include<cmath>

using namespace std;

int main()
{
    double A, B, C, t;
    cin >> A >> B >> C;
    if (B > A)
    {
        t = A;
        A = B;
        B = t;
    }
    if (C > A)
    {
        t = A;
        A = C;
        C = t;
    }
    if (C > B)
    {
        t = B;
        B = C;
        C = t;
    }
    if (A >= B + C)
        printf("NAO FORMA TRIANGULO\n");
    else
    {
        if (pow(A, 2) == pow(B, 2) + pow(C, 2))
            printf("TRIANGULO RETANGULO\n");
        if (pow(A, 2) > pow(B, 2) + pow(C, 2))
            printf("TRIANGULO OBTUSANGULO\n");
        if (pow(A, 2) < pow(B, 2) + pow(C, 2))
            printf("TRIANGULO ACUTANGULO\n");
        if (A == B && B == A && A == C)
            printf("TRIANGULO EQUILATERO\n");
        if (A == B && A != C || A == C && A != B || B == C && B != A)
            printf("TRIANGULO ISOSCELES\n");
    }
    return 0;
}

